//
//  CCImageCollectionView.h
//  Activity
//
//  Created by its on 15/5/12.
//  Copyright (c) 2015年 coco. All rights reserved.
//

#import <UIKit/UIKit.h>
@class CCImageCollectionView;

@protocol CCImageCollectionDataSource
- (NSArray *) itemOfCollection;
@optional
- (NSUInteger) numberOfColumns;
- (NSUInteger) columnGapOfCollection;
- (NSUInteger) rowGapOfCollection;
@end

@interface CCImageCollectionView : UIView
- (id) initWithDataSourece:(id<CCImageCollectionDataSource>) dataSource;

@property (nonatomic, strong) NSMutableArray *itemArray;
@property (nonatomic, assign) NSInteger numberOfColumns;//多少行
@property (nonatomic, assign) NSInteger columnGap;//列间距
@property (nonatomic, assign) NSInteger rowGap;
/**
 *  删除item
 *
 *  @param item item的编号
 */
- (void) deleItem:(id ) item;
/**
 *  添加item
 *
 *  @param items
 */
- (void) addItems:(NSArray *)items;

@end
